package org.example.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description:
 * @author: WangBlue
 * @create: 2024-04-10 09:38
 **/
@FeignClient(value = "provider" )
public interface ProviderClient {

    @GetMapping("/hi")
    String hi(@RequestParam(value = "name", defaultValue = "forezp", required = false) String name);


    @GetMapping("/test")
    String test(@RequestParam(value = "name", defaultValue = "wangblue",required = false) String name);

}